class UserModel {
  String accessToken;
  String username;
  String headerImg;
  int isFirstLogin;
  int memberId;
  int isBindMember;

  UserModel(
      {this.accessToken,
        this.username,
        this.headerImg,
        this.isFirstLogin,
        this.memberId,
        this.isBindMember});

  UserModel.fromJson(Map<String, dynamic> json) {
    accessToken = json['access_token'];
    username = json['username'];
    headerImg = json['header_img'];
    isFirstLogin = json['is_first_login'];
    memberId = json['member_id'];
    isBindMember = json['isBindMember'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['access_token'] = this.accessToken;
    data['username'] = this.username;
    data['header_img'] = this.headerImg;
    data['is_first_login'] = this.isFirstLogin;
    data['member_id'] = this.memberId;
    data['isBindMember'] = this.isBindMember;
    return data;
  }
}
